#ifndef __ROCKER_H
#define __ROCKER_H

#include "adc.h"
#include "typedefs.h"
#include <stdbool.h>

typedef enum{
	rocker_event_move = ROCKER_EVENT_START_ADDR,
	rocker_event_touch,
	rocker_event_away,
	rocker_event_none,
}rocker_event_t;

typedef enum{
	rocker_left,
	rocker_right,
	x_none
}rocker_x_type_t;

typedef enum{
	rocker_up,
	rocker_down,
	y_none
}rocker_y_type_t;

typedef struct{
	rocker_x_type_t x;
	rocker_y_type_t y;
	bool touch;
}rocker_t;

rocker_t Rocker_Read(void);
void Rocker_Process(void);

#endif
